package org.despair2D.ui.events 
{
	import flash.events.Event;
	
public class PanelEvent extends Event 
{
	
	public function PanelEvent(type:String, data:* = null, bubbles:Boolean=false, cancelable:Boolean=false) 
	{ 
		super(type, bubbles, cancelable);
		this.data = data
	} 
	
	
	public static const POPUP:String = 'popup'
	
	public static const CLOSE:String = 'close'
	
	
	public override function clone():Event 
	{ 
		return new PanelEvent(type, bubbles, cancelable);
	} 
	
	public override function toString():String 
	{ 
		return formatToString("PanelEvent", "type", "bubbles", "cancelable", "eventPhase"); 
	}
	
	
	public var data:Object
}
}